module.exports = () => {
    return async function adminauth(ctx, next) {
        if (ctx.session.openId) {
            await next()
        } else {
            ctx.body = { code: -1, msg: '没有登录' }
        }
    }
}